<!--
	PetClinic :: a Spring Framework demonstration
-->

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link rel="stylesheet" href="<spring:url value="/styles/esp.css" htmlEscape="true" />" type="text/css"/>
  <title>ESP: Extra Sensory Perception</title>	
</head>

<body>
  <div id="login_header" style="background:#7db223;color:white;">
    <span>Hello, </span> 
    
	<c:choose>	
	   <c:when test="${sessionScope.user == null}">
	       <span>guest &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
	       <a style="color:white" href="login">login</a>&nbsp;&nbsp;&nbsp;</span>
	       <a style="color:white" href="register">register</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
	   </c:when>	   
	   <c:otherwise>
	       <span>${sessionScope.user.nickname } &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
	       <a style="color:white" href="logout">quit</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>	       
	   </c:otherwise>	  
	</c:choose>
      
  </div>
  
  <div id="main">
